package com.shop.vuedemo.exception;

import lombok.Getter;

/**
 * projectName: vueDemo
 * create on 2021/11/14 11:11
 *
 * @author yanbl
 * @Description : 返回亚米商城的异常信息
 */
@Getter
public enum ShopErrorType implements ErrorType {

    INVALID_REQUEST("040001", "无效请求"),
    INVALID_CLIENT("040002", "无效client_id"),
    INVALID_GRANT("040003", "无效授权"),
    INVALID_SCOPE("040004", "无效scope"),
    INVALID_TOKEN("040005", "无效token"),
    INSUFFICIENT_SCOPE("040010", "授权不足"),
    REDIRECT_URI_MISMATCH("040020", "redirect url不匹配"),
    ACCESS_DENIED("040030", "拒绝访问"),
    METHOD_NOT_ALLOWED("040040", "不支持该方法"),
    SERVER_ERROR("040050", "权限服务错误"),
    UNAUTHORIZED_CLIENT("040060", "未授权客户端"),
    UNAUTHORIZED("040061", "未授权"),
    UNSUPPORTED_RESPONSE_TYPE("040070", "支持的响应类型"),
    UNSUPPORTED_GRANT_TYPE("040071", "不支持的授权类型");




    private String message;

    private String code;

    ShopErrorType(String code,String message){
        this.message = message;
        this.code = code;
    }

}
